export const companyDetailFormat = (CompanyFamousInfoDO) => {
  let {
    companyName,
    companyLogo,
    companyAbout,
    addressDetail,
    companyFinance,
    companyInfo,
    companyPerson,
    simpleName,
    companyPicUrl
  } = CompanyFamousInfoDO

  let swipersource = []
  let companydetail = {
    companyLogo,
    companyName,
    simpleName,
    tags: [companyAbout, companyFinance, companyPerson]
  }
  let companyintro = companyInfo
  let companyaddress = {
    addressname: addressDetail
  }

  try {
    companyPicUrl = companyPicUrl.split(',')
    companyPicUrl.map(data => {
      swipersource.push({ url: data })
    })
  } catch (ex) {}
  return {
    swipersource,
    companydetail,
    companyintro,
    companyaddress
  }
}
